package com.itheima.inner.test6;

public class Test {
    public static void main(String[] args) {
        //多态
       /* Inter inter = new Inter() {
            @Override
            public void sing() {
                System.out.println("唱一首基尼太美");
            }
        };
        inter.sing();*/
        new Inter() {
            @Override
            public void sing() {
                System.out.println("唱一首基尼太美");
            }
        }.sing();
    }

}

interface  Inter{
    void sing();
}